/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
 */

package org.opengauss.vo;

/**
 * description:this for TableOrderVo Class
 * Copyright (c) Huawei Technologies Co., Ltd. 2012-2021.
 *
 * @author Administrator
 * @version [openGauss_debug 0.0.1 2021/5/8]
 * @since 2021/5/8
 */
public class TableOrderItemVo {
    public Integer orderId;
    public Integer userId;
    public Integer itemId;
    public String data;
    public static String createColumns() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("(");
        sb.append("order_id int,");
        sb.append("\n");
        sb.append("user_id int,");
        sb.append("\n");
        sb.append("item_id int,");
        sb.append("\n");
        sb.append("data VARCHAR(100)");
//        sb.append("\n");
//        sb.append(" PRIMARY KEY (itemId)");
        sb.append(")");
        return sb.toString();
    }

    public static TableOrderItemVo deleteAllVo() {
        TableOrderItemVo vo = new TableOrderItemVo();
        vo.orderId = -1000;
        vo.userId = -1000;
        vo.itemId = -1000;
        vo.data = null;
        return vo;
    }

    @Override
    public String toString() {
        return "TableOrderItemVo{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", itemId=" + itemId +
                ", data='" + data + '\'' +
                '}';
    }
}
